package edu.cicese.alz;

/**
 * Created by: Eduardo Quintana Contreras
 * Date: 28/02/12
 * Time: 02:49 PM
 */
public class AccelerometerUtil {

	public static long timestampAux;
	public static int maxFrequency = 100;
	public static int expectedFrequency = 40;

	public static String[][][] periods = new String[][][]{
			{
					{"17/4/2012", "09:05:00", "09:06:00"},
					{"17/4/2012", "14:20:00", "14:21:30"},
			}
	};

	public static String[][][] walkingPeriods = new String[][][]{
			{},
			{
					{"17/11/2011", "09:05:00", "09:06:00"},
					{"17/11/2011", "14:20:00", "14:21:30"},
					{"22/11/2011", "12:45:00", "12:46:00"},
					{"22/11/2011", "13:36:20", "13:37:20"},
					{"22/11/2011", "13:38:00", "13:39:30"},
					{"26/11/2011", "13:36:00", "13:39:00"},
					{"26/11/2011", "15:13:10", "15:15:10"},
			},
			{

					{"16/11/2011", "13:00:00", "13:05:00"},
					{"16/11/2011", "08:26:00", "08:28:00"},
					{"17/11/2011", "11:11:00", "11:14:00"},
					{"17/11/2011", "10:43:00", "10:51:00"},
					{"23/11/2011", "12:15:00", "12:20:00"},
					{"23/11/2011", "12:40:00", "12:50:00"},
					{"23/11/2011", "12:55:00", "13:04:00"},
					{"24/11/2011", "13:36:00", "13:47:00"},
			},
			{

					{"22/11/2011", "14:51:00", "15:03:00"},
					{"22/11/2011", "15:24:00", "15:28:00"},
					{"22/11/2011", "15:29:00", "15:36:00"},
					{"30/11/2011", "13:20:00", "13:27:00"},
					{"30/11/2011", "14:32:00", "14:39:00"},
			},
			{

					{"23/11/2011", "08:55:00", "09:01:00"},
					{"23/11/2011", "09:02:00", "09:04:00"},
					{"23/11/2011", "09:08:30", "09:13:30"},
					{"23/11/2011", "11:40:30", "11:42:30"},
					{"24/11/2011", "11:36:00", "11:41:00"},
					{"24/11/2011", "12:03:00", "12:06:00"},
					{"24/11/2011", "12:07:00", "12:12:00"},
					{"24/11/2011", "12:19:00", "12:26:00"},
					{"24/11/2011", "13:05:00", "13:07:00"},
			},
			{},
			{

					{"09/12/2011", "16:15:30", "16:16:00"},
					{"09/12/2011", "16:17:00", "16:18:00"},
					{"09/12/2011", "16:32:00", "16:34:00"},
					{"12/12/2011", "09:21:30", "09:24:30"},
					{"12/12/2011", "09:36:00", "09:40:00"},
					{"11/12/2011", "09:26:30", "09:30:00"},
					{"11/12/2011", "09:34:30", "09:37:00"},
					{"17/12/2011", "16:43:30", "16:46:30"},
					{"23/12/2011", "09:27:30", "09:30:30"},
					{"23/12/2011", "09:37:00", "09:39:00"},
			},
			{

					{"16/12/2011", "11:15:30", "11:23:30"},
					{"16/12/2011", "11:27:00", "11:33:00"},
					{"16/12/2011", "11:36:30", "11:41:30"},
					{"19/12/2011", "10:17:30", "10:25:30"},
					{"19/12/2011", "10:33:00", "10:41:00"},
					{"19/12/2011", "10:48:00", "10:51:00"},
			},
			{

					{"14/12/2011", "21:22:00", "21:29:00"},
					{"15/12/2011", "21:23:00", "21:29:00"},
					{"15/12/2011", "06:20:00", "06:26:00"},
					{"16/12/2011", "11:15:30", "11:21:30"},
					{"16/12/2011", "12:03:00", "12:09:00"},
					{"17/12/2011", "06:01:30", "06:09:30"},
					{"17/12/2011", "06:14:00", "06:30:00"},
					{"23/12/2011", "21:21:00", "21:28:00"},
			},
			{},
			{},
			{

					{"18/01/2012", "10:54:00", "10:58:30"},
					{"18/01/2012", "11:32:00", "11:34:00"},
					{"18/01/2012", "18:18:00", "18:27:00"},
			},
			{},
			{},
			{}

//			{},
//			{//2
//					{"17/11/2011", "09:05:00", "09:06:00"},
//					{"17/11/2011", "14:20:00", "14:21:30"},
//					{"22/11/2011", "12:45:00", "12:46:00"},
//					{"22/11/2011", "13:36:20", "13:37:20"},
//					{"22/11/2011", "13:38:00", "13:39:30"},
//					{"26/11/2011", "13:36:00", "13:39:00"},
//					{"26/11/2011", "15:13:10", "15:15:10"},
//			},
//			{//3
//					{"16/11/2011", "13:00:00", "13:02:00"},
//					{"16/11/2011", "13:02:00", "13:05:00"},
//					{"16/11/2011", "08:26:00", "08:28:00"},
//					{"17/11/2011", "11:11:00", "11:14:00"},
//					{"17/11/2011", "10:43:00", "10:47:00"},
//					{"17/11/2011", "10:47:00", "10:51:00"},
//					{"23/11/2011", "12:15:00", "12:18:00"},
//					{"23/11/2011", "12:18:00", "12:20:00"},
//					{"23/11/2011", "12:40:00", "12:42:00"},
//					{"23/11/2011", "12:42:00", "12:44:00"},
//					{"23/11/2011", "12:44:00", "12:46:00"},
//					{"23/11/2011", "12:46:00", "12:48:00"},
//					{"23/11/2011", "12:48:00", "12:50:00"},
//					{"23/11/2011", "12:55:00", "12:57:00"},
//					{"23/11/2011", "12:57:00", "12:59:00"},
//					{"23/11/2011", "12:59:00", "13:01:00"},
//					{"23/11/2011", "13:01:00", "13:04:00"},
//					{"24/11/2011", "13:36:00", "13:38:00"},
//					{"24/11/2011", "13:38:00", "13:40:00"},
//					{"24/11/2011", "13:40:00", "13:42:00"},
//					{"24/11/2011", "13:42:00", "13:44:00"},
//					{"24/11/2011", "13:44:00", "13:47:00"},
//			},
//			{//4
//					{"22/11/2011", "14:51:00", "14:55:00"},
//					{"22/11/2011", "14:55:00", "15:00:00"},
//					{"22/11/2011", "15:00:00", "15:03:00"},
//					{"22/11/2011", "15:24:00", "15:28:00"},
//					{"22/11/2011", "15:29:00", "15:33:00"},
//					{"22/11/2011", "15:33:00", "15:36:00"},
//					{"30/11/2011", "13:20:00", "13:24:00"},
//					{"30/11/2011", "13:24:00", "13:27:00"},
//					{"30/11/2011", "14:32:00", "14:35:00"},
//					{"30/11/2011", "14:35:00", "14:39:00"},
//			},
//			{//5
//					{"23/11/2011", "08:55:00", "08:57:00"},
//					{"23/11/2011", "08:57:00", "08:59:00"},
//					{"23/11/2011", "08:59:00", "09:01:00"},
//					{"23/11/2011", "09:02:00", "09:04:00"},
//					{"23/11/2011", "09:08:30", "09:10:30"},
//					{"23/11/2011", "09:10:30", "09:13:30"},
//					{"23/11/2011", "11:40:30", "11:42:30"},
//					{"24/11/2011", "11:36:00", "11:38:00"},
//					{"24/11/2011", "11:38:00", "11:41:00"},
//					{"24/11/2011", "12:03:00", "12:06:00"},
//					{"24/11/2011", "12:07:00", "12:10:00"},
//					{"24/11/2011", "12:10:00", "12:12:00"},
//					{"24/11/2011", "12:19:00", "12:21:00"},
//					{"24/11/2011", "12:21:00", "12:23:00"},
//					{"24/11/2011", "12:23:00", "12:26:00"},
//					{"24/11/2011", "13:05:00", "13:07:00"},
//			},
//			{},
//			{//7
//					{"09/12/2011", "16:15:30", "16:16:00"},
//					{"09/12/2011", "16:17:00", "16:18:00"},
//					{"09/12/2011", "16:32:00", "16:34:00"},
//					{"12/12/2011", "09:21:30", "09:24:30"},
//					{"12/12/2011", "09:36:00", "09:38:00"},
//					{"12/12/2011", "09:38:00", "09:40:00"},
//					{"11/12/2011", "09:26:30", "09:30:00"},
//					{"11/12/2011", "09:34:30", "09:37:00"},
////					{"17/12/2011", "16:43:30", "16:46:30"}, ??
//					{"23/12/2011", "09:27:30", "09:30:30"},
//					{"23/12/2011", "09:37:00", "09:39:00"},
//			},
//			{
//
//					{"16/12/2011", "11:15:30", "11:17:30"},
//					{"16/12/2011", "11:17:30", "11:19:30"},
//					{"16/12/2011", "11:19:30", "11:21:30"},
//					{"16/12/2011", "11:21:30", "11:23:30"},
//					{"16/12/2011", "11:27:00", "11:30:00"},
//					{"16/12/2011", "11:30:00", "11:33:00"},
//					{"16/12/2011", "11:36:30", "11:39:30"},
//					{"16/12/2011", "11:39:30", "11:41:30"},
//					{"19/12/2011", "10:17:30", "10:19:30"},
//					{"19/12/2011", "10:19:30", "10:21:30"},
//					{"19/12/2011", "10:21:30", "10:22:30"},
//					{"19/12/2011", "10:23:30", "10:25:30"},
//					{"19/12/2011", "10:33:00", "10:35:00"},
//					{"19/12/2011", "10:35:00", "10:37:00"},
//					{"19/12/2011", "10:37:00", "10:39:00"},
//					{"19/12/2011", "10:39:00", "10:41:00"},
//					{"19/12/2011", "10:48:00", "10:51:00"},
//
//			},
//			{
//					{"14/12/2011", "21:22:00", "21:24:00"},
//					{"14/12/2011", "21:24:00", "21:26:00"},
//					{"14/12/2011", "21:26:00", "21:29:00"},
//					{"15/12/2011", "21:23:00", "21:26:00"},
//					{"15/12/2011", "21:26:00", "21:29:00"},
//					{"15/12/2011", "06:20:00", "06:23:00"},
//					{"15/12/2011", "06:23:00", "06:26:00"},
//					{"16/12/2011", "11:15:30", "11:18:30"},
//					{"16/12/2011", "11:18:30", "11:21:30"},
//					{"16/12/2011", "12:03:00", "12:06:00"},
//					{"16/12/2011", "12:06:00", "12:09:00"},
//					{"17/12/2011", "06:01:30", "06:03:30"},
//					{"17/12/2011", "06:03:30", "06:05:30"},
//					{"17/12/2011", "06:05:30", "06:07:30"},
//					{"17/12/2011", "06:07:30", "06:09:30"},
//					{"17/12/2011", "06:14:00", "06:16:00"},
//					{"17/12/2011", "06:16:00", "06:18:00"},
//					{"17/12/2011", "06:18:00", "06:20:00"},
//					{"17/12/2011", "06:20:00", "06:22:00"},
//					{"17/12/2011", "06:22:00", "06:24:00"},
//					{"17/12/2011", "06:24:00", "06:26:00"},
//					{"17/12/2011", "06:26:00", "06:28:00"},
//					{"17/12/2011", "06:28:00", "06:30:00"},
//					{"23/12/2011", "21:21:00", "21:23:00"},
//					{"23/12/2011", "21:23:00", "21:25:00"},
//					{"23/12/2011", "21:25:00", "21:28:00"},
//			},
//			{},
//			{},
//			{
//					{"18/01/2012", "10:54:00", "10:55:30"},
//					{"18/01/2012", "10:55:00", "10:56:30"},
//					{"18/01/2012", "10:56:30", "10:58:30"},
//					{"18/01/2012", "11:32:00", "11:34:00"},
//					{"18/01/2012", "18:18:00", "18:20:00"},
//					{"18/01/2012", "18:20:00", "18:22:00"},
//					{"18/01/2012", "18:22:00", "18:24:00"},
//					{"18/01/2012", "18:24:00", "18:26:00"},
//					{"18/01/2012", "18:26:00", "18:27:00"},
//
//			},
//			{},
//			{},
//			{}
	};


	// types: 1-Passenger 2-Driver 3-Walking
	public static long[][][] timestamps = new long[][][]{
			//user 1
			{
					{1, 1322251677000l, 1322252097000l},
					{1, 1322267397000l, 1322268297000l},
					{1, 1322490681000l, 1322491022000l},
					{1, 1322858628000l, 1322859078000l},
					{3, 1322865197000l, 1322865451000l},
			},
			//user 2
			{
					{2, 1321475020000l, 1321475499000l},
					{2, 1321993621000l, 1321994493000l},
					{3, 1321549618000l, 1321549733000l},
					{3, 1321994881000l, 1321997044000l},
					{3, 1322343546000l, 1322343666000l},
					{3, 1322349305000l, 1322349426000l},
			},
			//user 3
			{
					{1, 1321564276000l, 1321565977000l},
					{1, 1321660875000l, 1321661957000l},
					{3, 1321642004796l, 1321642750000l},
					{3, 1321643206000l, 1321643976000l},
					{3, 1321547212000l, 1321547415000l},
					{3, 1321561903000l, 1321562297000l},
					{3, 1321563733000l, 1321564006000l},
			},
			//user 4
			{
					{1, 1321985813000l, 1321986683000l},
					{1, 1322071283000l, 1322071373000l},
					{1, 1322082234000l, 1322082443000l},
					{3, 1322002492000l, 1322003392000l},
					{3, 1322688453000l, 1322688600000l},
					{3, 1322692473000l, 1322692892000l},
			},
			//user 5
			{
					{1, 1322066590906l, 1322067216000l},
					{1, 1322075951000l, 1322077331000l},
					{1, 1321465445000l, 1321465507000l},
					{1, 1321994290000l, 1321994375000l},
					{3, 1322067483000l, 1322068000000l},
					{3, 1322068269000l, 1322068538000l},
					{3, 1322163521000l, 1322163812000l},
					{3, 1322165110000l, 1322165679000l},
			},
			//user 6
			{
					{1, 1323630446000l, 1323631666000l},
					{1, 1323639827000l, 1323640547000l},
					{1, 1324079153000l, 1324080713000l},
			},
			//user 7
			{
					{1, 1323473610000l, 1323473970000l},
					{1, 1323474930000l, 1323475486000l},
					{1, 1323731386000l, 1323731746000l},
					{3, 1323476437000l, 1323477491000l},
					{3, 1323710812000l, 1323711004000l},
			},
			//user 8
			{
					{1, 1323452598000l, 1323453197000l},
					{1, 1323467765000l, 1323468473000l},
					{3, 1323453319000l, 1323454261000l},
					{3, 1324063163000l, 1324064604000l},
			},
			//user 9
			{
					{1, 1323959496000l, 1323960058000l},
					{1, 1324012429000l, 1324013044000l},
					{3, 1323926735000l, 1323927163000l},
					{3, 1324130794000l, 1324132833000l},
					{3, 1324013162000l, 1324013522000l},
					{3, 1324063008000l, 1324063474000l},
			},
			//user 10
			{},
			//user 11
			{
					{1, 1327093784000l, 1327093989000l},
					{1, 1327095464000l, 1327095817000l},
					{1, 1328229407000l, 1328229766000l},
					{1, 1328236246000l, 1328237316000l},
			},
			//user 12
			{
					{1, 1327000089000l, 1327000929000l},
					{1, 1327077006000l, 1327077726000l},
					{3, 1326999728000l, 1326999840000l},
					{3, 1327026248000l, 1327026719000l},
					{3, 1327076766000l, 1327076886000l},
			},
			//user 13
			{
					{1, 1328222335000l, 1328222440000l},
					{1, 1328230908000l, 1328231104000l},
					{3, 1328222548000l, 1328222708000l},
			},
			//user 14
			{},
			//user 15
			{}
	};
}
